// components/shoping-cell/shoping-cell.js
import { feach } from "../../http/http";
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    item: { type: Object, value: {} }
  },
  /**
   * 组件的初始数据
   */
  data: {
    value: 1,
    cartList: []
  },
  created() {},
  /**
   * 组件的方法列表
   */
  methods: {
    plus() {
      console.log("点击了加", this.data.value);
      console.log(this.properties.item);
    },
    minus() {
      console.log("点击了减", this.data.value);
    },
    clickStop() {
      console.log("拦截步进器事件冒泡");
    },
    clickCellGood(e) {
      console.log(e);
    },
    changeChecked(e) {
      this.properties.item.checked = !this.properties.item.checked;
      // console.log(this.properties.item.checked);
      this.triggerEvent("clickbox", { item: this.properties.item });
    }
  }
});
